package org.jeecg.modules.yks.mqtt.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.yks.mqtt.service.MqttSubscriberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "MQTT发布列表查询")
@RestController
@RequestMapping("/mqtt")
public class MqttSubscriberController {

    @Autowired
    private MqttSubscriberService mqttSubscriberService;

    @ApiOperation("发送消息")
    @GetMapping("/list_allsubs")
    public Result<Object> listAllSub(){
        return Result.ok(mqttSubscriberService.listAllSub());
    }
}
